const KEY = 'hoke-vant'

// 直接用按需导出，可以导出多个
// 但是按需导出，导入时必须 import { getToken } from '模块名导入'
// 获取token
export const getToken = () => {
  return localStorage.getItem(KEY)
}

// 设置token
export const setToken = (value) => {
  return localStorage.setItem(KEY, value)
}

// 删除token
export const delToken = () => {
  return localStorage.removeItem(KEY)
}
